import 'lib-flexible';
import lang from './lang/zh-cn';
import config from './config';
import Vue from 'vue';
import App from './App';
import store from './store';
import router from './router';
import * as filters from './filters';
import MuseUI from 'muse-ui'
import VueAwesomeSwiper from 'vue-awesome-swiper'

import '@assets/fonts/iconfont.css';
import 'muse-ui/dist/muse-ui.css';
import 'swiper/dist/css/swiper.css';

Vue.use(MuseUI)
Vue.use(VueAwesomeSwiper)
window.i18n = lang;
window.CT = config;

// register global utility filters.
Object.keys(filters).forEach((key) => {
  Vue.filter(key, filters[key]);
});

/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  template: '<App/>',
  components: {App}
});

